﻿//**********************************************************
//Copyright(C)2010 By 波特商网公司 版权所有。
//
//文件名：
//文件功能：自定义控件 UpDownButton 委托
//
//创建标识： 陈博生|| 2011-05-18
//
//修改标识：
//修改描述：
//**********************************************************
using System.Windows.Forms;
using System.Drawing;

namespace Hmc.IM.Common.UserControls
{
    /// <summary>
    /// 
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    public delegate void UpDownButtonPaintEventHandler(
        object sender,
        UpDownButtonPaintEventArgs e);

    /// <summary>
    /// 
    /// </summary>
    public class UpDownButtonPaintEventArgs : PaintEventArgs
    {
        private bool _mouseOver;
        private bool _mousePress;
        private bool _mouseInUpButton;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="graphics"></param>
        /// <param name="clipRect"></param>
        /// <param name="mouseOver"></param>
        /// <param name="mousePress"></param>
        /// <param name="mouseInUpButton"></param>
        public UpDownButtonPaintEventArgs(
            Graphics graphics,
            Rectangle clipRect,
            bool mouseOver,
            bool mousePress,
            bool mouseInUpButton)
            : base(graphics, clipRect)
        {
            _mouseOver = mouseOver;
            _mousePress = mousePress;
            _mouseInUpButton = mouseInUpButton;
        }
        /// <summary>
        /// 
        /// </summary>
        public bool MouseOver
        {
            get { return _mouseOver; }
        }
        /// <summary>
        /// 
        /// </summary>
        public bool MousePress
        {
            get { return _mousePress; }
        }
        /// <summary>
        /// 
        /// </summary>
        public bool MouseInUpButton
        {
            get { return _mouseInUpButton; }
        }
    }
}
